//store/index.js
import Vue from 'vue'
import Vuex from 'vuex'
 
import user from './modules/user'
import home from './modules/home'
import search from './modules/search'
 
Vue.use(Vuex)
 
export default new Vuex.Store({
    // 模块化开发
  modules: {
    user,
	home,
	search
  }
})